package com.frank.shardingJdbcMybatis.mapper;

import com.frank.shardingJdbcMybatis.entity.Address;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 小石潭记
 * @date 2020/10/14 10:26
 * @Description: ${todo}
 */
@Mapper
public interface AddressMapper {
    /**
     * 保存
     */
    void save(Address address);

    /**
     * 查询
     * @param id
     * @return
     */
    Address get(Long id);

    List<Address> getAll();
}
